 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_goods_return")
 public class GoodsReturn extends IdEntity
 {
   private String return_id;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private OrderForm of;
 
   @OneToMany(mappedBy="gr", cascade={CascadeType.REMOVE})
   private List<GoodsReturnItem> items = new ArrayList();
 
   @ManyToOne(fetch=FetchType.LAZY)
   private User user;
 
   @Column(columnDefinition="LongText")
   private String return_info;
 
   public OrderForm getOf() { return this.of; }
 
   public void setOf(OrderForm of)
   {
     this.of = of;
   }
 
   public List<GoodsReturnItem> getItems() {
     return this.items;
   }
 
   public void setItems(List<GoodsReturnItem> items) {
     this.items = items;
   }
 
   public User getUser() {
     return this.user;
   }
 
   public void setUser(User user) {
     this.user = user;
   }
 
   public String getReturn_id() {
     return this.return_id;
   }
 
   public void setReturn_id(String return_id) {
     this.return_id = return_id;
   }
 
   public String getReturn_info() {
     return this.return_info;
   }
 
   public void setReturn_info(String return_info) {
     this.return_info = return_info;
   }
 }



 
 